<%@page import="com.wx.database.DatabaseDao"%>
<%@page import="com.wx.entity.User"%>
<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户信息</title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="viewport"
	content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style type="text/css">
div {
	margin: 0 auto;
	text-align: center;
}

table.gridtable {
	margin: 0px auto;
	font-family: verdana, arial, sans-serif;
	font-size: 11px;
	color: #333333;
	border-width: 1px;
	border-color: #666666;
	border-collapse: collapse;
}

table.gridtable th {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #666666;
	background-color: #dedede;
}

table.gridtable td {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #666666;
	background-color: #ffffff;
}
</style>
</head>
<body>
	<div>
	<h3>基于OpenCV的车牌识别系统</h3>
	<h4>用户信息表</h4>
		<table class="gridtable" border="0">
			<tr>
				<th>ID编号</th>
				<th>用户名</th>
				<th>联系方式</th>
			</tr>
			<%
				// DatabaseDao dao = new DatabaseDao();
				List<User> listUser = DatabaseDao.queryUser();
				for (int i = 0; i < listUser.size(); ++i) {
			%>
			<tr>
				<td><%=listUser.get(i).getUid()%></td>
				<td><%=listUser.get(i).getUsername()%></td>
				<td><%=listUser.get(i).getTel()%></td>
			</tr>
			<%
				}
			%>
		</table>
	</div>
</body>
</html>